package com.chanzany.visitor.case2;

public class Client {
    public static void main(String[] args) {
        Home home = new Home();
        Dog dog = new Dog();
        dog.setName("NICO");
        Cat cat = new Cat();
        cat.setName("TOM");
        home.add(dog);
        home.add(cat);
        Person owner = new Owner();
        Person someOne = new SomeOne();
        home.action(owner);
        home.action(someOne);
    }
}
